<!--{include(pe_tpl('header.html'));}-->
<div class="right">
	<!--{include(pe_tpl('setting_menu.html'));}-->
	<form method="post" id="form">
	<div class="right_main">
		<div class="tixing">
			<p><span class="cred">[注]</span> 短信接口需要付费给移动/联通等运营商，详情见<a href="http://www.phpshe.com/article/133" class="cblue" target="_blank">《简好网络短信接口说明》</a></p>
			<p><span class="cred">[注]</span> 管理员手机号：用于接收短信通知，多个用“,”隔开</p>
		</div>
		<table width="100%" border="0" cellspacing="0" cellpadding="0" class="wenzhang mat20 mab20">
		<tr>
			<td align="right" width="150">短信key：</td>
			<td><input type="text" name="info[sms_key]" value="{$info['sms_key']['setting_value']}" class="inputall input300" /></td>
		</tr>
		<tr>
			<td align="right">短信签名：</td>
			<td><input type="text" name="info[sms_sign]" value="{$info['sms_sign']['setting_value']}" class="inputall input300" /> <span class="c999">（如：简好网络）</span></td>
		</tr>
		<tr>
			<td align="right">短信余额：</td>
			<td>
				<span class="fl mar20 strong corg" id="point"><img src="{$pe['host_tpl']}images/load.gif" class="mat5" /></span>
				<a href="http://www.phpshe.com" target="_blank" class="fl cblue">[充值]</a>
				<div class="clear"></div>
			</td>
		</tr>
		<tr>
			<td align="right">管理员手机号：</td>
			<td>
				<input type="text" name="info[sms_admin]" value="{$info['sms_admin']['setting_value']}" class="inputall input300" />
				<a href="javascript:;" class="admin_btn mal10" id="sms_test" />发送测试短信</a>
				<span class="c888">（用于接收订单通知，多个用“,”隔开）</span>	
			</td>
		</tr>
		</table>
	</div>
	<div class="right_main2">
		<div class="now2"><p>邮箱设置</p></div>
		<table width="100%" border="0" cellspacing="0" cellpadding="0" class="wenzhang mat20">
		<tr>
			<td align="right" width="150">SMTP地址：</td>
			<td><input type="text" name="info[email_smtp]" value="{$info['email_smtp']['setting_value']}" class="inputall input200" /> <span class="c888">（例：smtp.qq.com）</span></td>
		</tr>
		<tr>
			<td align="right">SSL协议：</td>
			<td>
				<!--{foreach(array(1=>'启用', 0=>'停用') as $k=>$v):}-->
				<!--{$checked = $info['email_ssl']['setting_value'] == $k ? 'checked="checked"' : ''}-->
				<label class="mar20"><input type="radio" name="info[email_ssl]" value="{$k}" class="inputfix" {$checked} /> {$v}</label>
				<!--{endforeach;}-->
			</td>
		</tr>
		<tr>
			<td align="right">SMTP端口：</td>
			<td><input type="text" name="info[email_port]" value="{$info['email_port']['setting_value']}" class="inputall input200" /> <span class="c888">（例：25）</span></td>
		</tr>
		<tr>
			<td align="right">发件人邮箱：</td>
			<td><input type="text" name="info[email_name]" value="{$info['email_name']['setting_value']}" class="inputall input200" /> <span class="c888">（例：123456@qq.com）</span></td>
		</tr>
		<tr>
			<td align="right">发件人密码：</td>
			<td><input type="text" name="info[email_pw]" value="{$info['email_pw']['setting_value']}" class="inputall input200" /></td>
		</tr>
		<tr>
			<td align="right">发件人姓名：</td>
			<td><input type="text" name="info[email_nname]" value="{$info['email_nname']['setting_value']}" class="inputall input200" /> <span class="c888">（例：简好网络）</span></td>
		</tr>
		<tr>
			<td align="right">管理员邮箱：</td>
			<td>
				<input type="text" name="info[email_admin]" value="{$info['email_admin']['setting_value']}" class="inputall input350" />
				<a href="javascript:;" class="admin_btn mal10" id="email_test" />发送测试邮件</a>
				<span class="c888">（用于接收邮件通知，多个用“,”隔开）</span>	
			</td>
		</tr>
		<tr>
			<td></td>
			<td>
				<input type="hidden" name="pesubmit" />
				<input type="hidden" name="pe_token" value="{$pe_token}" />
				<input type="submit" value="提 交" class="tjbtn" />
			</td>
		</tr>
		</table>
	</div>
	</form>
</div>
<script type="text/javascript">
$(function(){
	$.getJSON("http://www.phpshe.com/api.php?mod=sms&act=point&key={$info['sms_key']['setting_value']}&ver=0.1&callback=?", function(json){
		if (!json.result) json.point = 0;
		$("#point").html(json.point+' 条');
	})
	$("#sms_test").click(function(){
		$(this).attr("href", "admin.php?mod=setting&act=sms_test&user="+$(":input[name='info[sms_admin]']").val()+"&token={$pe_token}");
	})
	$("#email_test").click(function(){
		$(this).attr("href", "admin.php?mod=setting&act=email_test&user="+$(":input[name='info[email_admin]']").val()+"&token={$pe_token}")
	})
})
</script>
<!--{include(pe_tpl('footer.html'));}-->